package io.renren.modules.cardeal.service;

import com.alibaba.fastjson.JSONObject;
import com.baomidou.mybatisplus.extension.service.IService;
import io.renren.common.utils.PageData;
import io.renren.modules.cardeal.dto.CarDealDTO;
import io.renren.modules.cardeal.entity.CarDealEntity;
import io.renren.modules.cardeal.vo.CarDealVO;

import java.util.List;
import java.util.Map;


/**
 * 车辆成交表
 *
 * @author admin
 * @email sunlightcs@gmail.com
 * @date 2021-08-18 14:20:53
 */
public interface CarDealService extends IService<CarDealEntity> {

    /**
     * 车辆成交表(分页)
     * @param params
     * @return
     */
    PageData<CarDealVO> queryCarDealPage(Map<String, Object> params);

    /**
     * 添加车辆成交
     * @param dto
     */
    void addCarDeal(CarDealDTO dto);

    /**
     * 销售业绩统计
     * @param params
     * @return
     */
    List<JSONObject> performance(Map<String, Object> params);

    /**
     * 财务统计
     * @param params
     * @return
     */
    JSONObject caiwu(Map<String, Object> params);
}

